package com.dream.cgomall.entity;

import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * (CgoActiveRedpackage)实体类
 *
 * @author makejava
 * @since 2021-07-12 21:38:27
 */
@Data
@ToString
public class CgoActiveRedpackage implements Serializable {

    /**
     * 红包雨活动库
     */
    private Integer id;
    /**
     * 开始时间
     */
    private LocalDateTime beginTime;
    /**
     * 结束时间
     */
    private LocalDateTime endTime;
    /**
     * 金额
     */
    private Object price;
    /**
     * 数量
     */
    private Integer many;
    /**
     * 活动图片
     */
    private String image;
    /**
     * 打开图片
     */
    private String openimg;
    /**
     * 是否结束 0-没结束 1-结束
     */
    private Integer isover;
    /**
     * 用户Id (带货直播)
     */
    private Integer userId;

    public CgoActiveRedpackage() {
    }

    public CgoActiveRedpackage(Integer id, LocalDateTime beginTime, LocalDateTime endTime, Object price, Integer many, String image, String openimg, Integer isover, Integer userId) {
        this.id = id;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.price = price;
        this.many = many;
        this.image = image;
        this.openimg = openimg;
        this.isover = isover;
        this.userId = userId;
    }

    public CgoActiveRedpackage(LocalDateTime beginTime, LocalDateTime endTime, Object price, Integer many, String image, String openimg, Integer userId) {
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.price = price;
        this.many = many;
        this.image = image;
        this.openimg = openimg;
        this.userId = userId;
    }


}
